/**
 * Created by Jacky.Gao on 2017-01-25.
 */
import Tool from './Tool.js';
import { setDirty } from '../Utils.js';
import ShortcutKeysToolDialog from '../dialog/ShortcutKeysToolDialog.js';

export default class ShortcutKeysTool extends Tool {
  constructor(context) {
    super(context);
    this.dialog = new ShortcutKeysToolDialog();
  }
  execute() {
    setDirty();
    this.dialog.show();
  }
  getTitle() {
    return `${window.i18n.tools.ShortcutKeys}`;
  }
  getIcon() {
    return `<div class="btn-group"><button type="button" class="btn btn-default"
     style="border:none;border-radius:0;text-align: center;padding:0;position: fixed;right: 450px;
     margin-top: -20px; "><i class="icon-ym icon-ym-shortcut"></i></button></div>`;
  }
}